package com.wzh.dao;

import com.wzh.pojo.Po.Card;
import com.wzh.pojo.Po.NameList;
import com.wzh.pojo.Req.DataReq;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface NameListDao {

	List<NameList> findall(DataReq req);
	@Delete("delete from  list where id=#{id}")
	Integer del(NameList name);
    @Update("update list set name =#{name} where id =#{id}")
	Integer update(NameList name);
    @Insert("insert list (name) value (#{name})")
	Integer add(NameList name);
}
